package com.wl.es7.study;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wl.es7.study.entity.Car;
import com.wl.es7.study.mapper.CarMapper;
import org.springframework.stereotype.Component;

@Component
public class CarService extends ServiceImpl<CarMapper, Car> {


    public Car getCar(){
        return this.lambdaQuery().eq(Car::getId,1).one();
    }
}
